# @Time  : 2021/7/28 22:11
# @Author: zhanfengzhen
# @Email : zhanfengzhen@126.com
# @File  : main_page.py
# !/usr/bin/env python
# -*- coding: UTF-8 -*-
from appium.webdriver.common.mobileby import MobileBy

from hogwarts.HogwartsHomework.appWork1.po.basePage import BasePage
from hogwarts.HogwartsHomework.appWork1.po.contactPage import ContactPage


class MainPage(BasePage):
    def goto_contact(self):
        self.driver.find_element(MobileBy.XPATH, '//*[@text="通讯录"]').click()
        return ContactPage(self.driver)